package com.github.cyf.controller.v2;

import com.github.cyf.common.module.Rs;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenyifan
 * @create 2024-03-26 15:49
 */
@RestController
@Api(tags = "后台Api接口")
@RequestMapping("/admin")
public class AdminController {

    @ApiOperation("get请求")
    @GetMapping("/get")
    public Rs get(String param) {
        return Rs.ok().setData(param);
    }

}
